#include "BillingInterface.h"

#include "YijieBilling.h"

BillingInterface* Billing::m_pInstance = nullptr;

BillingInterface* Billing::getInstance()
{
	if (!m_pInstance)
	{
		m_pInstance = new YijieBilling();
	}

	return m_pInstance;
}

bool Billing::isMusicEnabled()
{
	return m_pInstance->isMusicEnabled();
}

void Billing::moreGame()
{
	m_pInstance->moreGame();
}

void Billing::pay(const std::string& billingIndex, const char* const goods)
{
	m_pInstance->pay(billingIndex, goods);
}

void Billing::exit()
{
	m_pInstance->exit();
}
